package org.sean.framework.pool;

/**
 * 线程池工具类
 *
 * @author Sean
 */
public final class IOTaskExecutor extends AbstractTaskExecutor {

    private static volatile IOTaskExecutor instance;

    private IOTaskExecutor() {
        super(100, "io");
    }

    /**
     * 获取实例
     *
     * @return IOTaskExecutor
     */
    public static IOTaskExecutor getInstance() {
        if (instance == null) {
            synchronized (IOTaskExecutor.class) {
                if (instance == null) {
                    instance = new IOTaskExecutor();
                }
            }
        }
        return instance;
    }
}
